/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package entities;

/**
 *
 /**
  * @author Leonardo Lino Nº45340
 * @author Diogo Pires Nº40351
 */
 
public class Server {
    
    public final static int TYPE_APP = 0;
    public final static int TYPE_DB = 1;
    
    private String ip;
    private int port;
    private String nodeName;
    private int type;
    private String rmiBindName;

    public Server(String ip, int port) {
        this.ip = ip;
        this.port = port;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getRmiBindName() {
        return rmiBindName;
    }

    public void setRmiBindName(String rmiBindName) {
        this.rmiBindName = rmiBindName;
    }


    
    
}
